<script language="javascript" type="text/javascript" src="__PUBLIC__/js/My97DatePicker/WdatePicker.js"></script>
<div>
    <div class="form">
	   <dl>
        <dt>【护照资料】</dt>
        <dd>
        	<p style="margin: 2px 0px;">护照号：{$passportInfo.passport_code_mrz}</p>
			<p style="margin: 2px 0px;">姓名：{$passportInfo.username}</p>
			<p style="margin: 2px 0px;">联系手机：{$passportInfo.mobile}</p>
        	<p style="margin: 2px 0px;">快递单号：{$passportInfo.expresssingle}</p>
        </dd>
      </dl>
      <form method='post' id="form_do" name="form_do" action="{:U(MODULE_NAME. '/Message/visaProcess',array('id'=>$id))}">
      <dl>
        <dt>疑难件原因：</dt>
        <dd>
        	<input name="result[]" type="checkbox" value="照片不合格"/>照片不合格
        	<input name="result[]" type="checkbox" value="个人资料表填写不详细"/>个人资料表填写不详细
        	<input name="result[]" type="checkbox" value="护照DT记录"/>护照DT记录
        	<input name="result[]" type="checkbox" value="送签前退件"/>送签前退件
        	<p class="red">(官网查询进度状态)</p>
        </dd>
      </dl>
      <dl>
        <dt>发送对象：</dt>
        <dd>
        	<input type="radio" name="receiveGroupID" value="0" />进度记录
			<input type="radio" name="receiveGroupID" value="25" checked="checked"/>签证组 
			<input type="radio" name="receiveGroupID" value="17" />售后组 
			<input type="radio" name="receiveGroupID" value="18" />淘宝部
        </dd>
      </dl>
      <dl>
        <dt>发送内容：</dt>
        <dd>
		<textarea name="content" style="width: 450px;height: 80px;"></textarea>
        </dd>
      </dl>
      <dl>
        <dt></dt>
        <dd>
			<input type="submit" class="button-blue" id="submit" value="发送">
        	<input type="button" onclick="goBack()" class="button-green" value="返回" />
        	<if condition="$canEnd eq true">
        	<input type="button" class="button-red" onclick="dealEnd({$message['id']})" value="完成流转">
        	<input type="button" class="button-red" onclick="dealStop({$message['id']})" value="挂起">
        	</if>
        </dd>
      </dl>
    </form>
    </div>
</div>
<script type="text/javascript">
function dealEnd(id)
{
	var Div = layer.open({
	    type: 1,
	    title: '流转完成',
	    area: ['auto', 'auto'],
	    shift: 0, 
	    content: '你是否该流转，从疑难件转正常件？',
	    btn:['确定','取消'],
	    yes: function(index){
	    	window.location.href = "{:U(MODULE_NAME. '/Message/visaProcessDealEnd',array('id'=>$message['id']))}";
	    }, 
	    cancel: function(){
	    	layer.close(Div);
	    }
	});
}
function dealStop(id)
{
	var Div = layer.open({
	    type: 1,
	    title: '流转挂起',
	    area: ['450px', '200px'],
	    shift: 0, 
	    content: '<div class="layer-content"><form method="post" id="layerDiv" name="form_do" action="/Home/Message/orderProcessDealStop.html"><p>你现在要暂停该订单流转</p><p>提醒时间：<input class="Wdate" type="text" style="width:120px;padding:2px 5px;" onclick="WdatePicker()" name="enddate" value=""><input type="hidden" name="id" value="'+id+'"></p></form></div>',
	    btn:['确定','取消'],
	    yes: function(index){
	    	$('#layerDiv').submit();
	    }, 
	    cancel: function(){
	    	layer.close(Div);
	    }
	});
}
</script>
